﻿@model Project_KhuyenMaiVang.Models.DoanhNghiepDTO

@{
    ViewBag.Title = "EditDoanhNghiep";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>Cập Nhật Doanh Nghiệp</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Thông Tin Doanh Nghiệp</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Web)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Web)
            @Html.ValidationMessageFor(model => model.Web)
        </div>

        <div class="editor-label">
            @Html.ActionLink("Edit Liên Hệ", "EditLienHeDoanhNghiep", new { idLienHe = Model.MaLienHe, idDoanhNghiep = Model.IDAccount })
        </div>
        <div class="hidden">
            @Html.EditorFor(model => model.MaLienHe)
            @Html.ValidationMessageFor(model => model.MaLienHe)
        </div>

        <div class="editor-label">
            @Html.Label("Tên Doanh Nghiệp")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TenDoanhNghiep)
            @Html.ValidationMessageFor(model => model.TenDoanhNghiep)
        </div>

        <div class="hidden">
            @Html.LabelFor(model => model.IDAccount)
        </div>
        <div class="hidden">
            @Html.EditorFor(model => model.IDAccount)
            @Html.ValidationMessageFor(model => model.IDAccount)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "QuanLyDoanhNghiep")
</div>
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")"></script>

<script type="text/javascript">
    $(document).ready(function () {
        $(".hidden").hide()
    })
</script>